package com.zgh.leo.signin611.resetting;
//修改密码
import android.annotation.SuppressLint;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

import com.zgh.leo.signin611.R;

public class repassword extends AppCompatActivity implements View.OnClickListener {
    private EditText OldPassword;
    private EditText NewPassword;
    private Button Change;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_repassword);
        Change=(Button)findViewById(R.id.change);
        OldPassword=(EditText)findViewById(R.id.OldPassword);
        NewPassword=(EditText)findViewById(R.id.NewPassword);
        Change.setOnClickListener(this);
    }

    @Override
    public void onBackPressed() {
        super.onBackPressed();//finish();
    }


    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.change:
                String inputText1=OldPassword.getText().toString();
                String inputText2=NewPassword.getText().toString();
                Toast.makeText(repassword.this,"change successful!",Toast.LENGTH_SHORT).show();
                break;
            default:
                break;
        }
    }
}
